<%@ page import="org.bjou.UserResume" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="pertho">
		<g:set var="entityName" value="${message(code: 'userResume.label', default: 'UserResume')}" />
		<title><g:message code="default.create.label" args="[entityName]" /></title>
	</head>
	<body>
		
		<div class="container">
		<div class="row">
		  <div class="twelve columns">
			<div class="box_c">
			  <div class="box_c_heading cf">
				<p><g:message code="default.create.label" args="[entityName]" /></p>
			  </div>
			  <div class="box_c_content">
				<!-- start -->
		
		<div id="create-userResume" class="content scaffold-create" role="main">
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${userResumeInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${userResumeInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form action="save" >
				<fieldset class="form">
					<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'beginYear', 'error')} ">
	<label for="beginYear">
		<g:message code="userResume.beginYear.label" default="Begin Year" />
		
	</label>
	 <g:select  from="${yearList}"
                         name='beginYear' value="${userResumeInstance?.beginYear}" >
               </g:select>
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'beginMonth', 'error')} ">
	<label for="beginMonth">
		<g:message code="userResume.beginMonth.label" default="Begin Month" />
		
	</label>
	   <g:select  from="${monthList}"
                         name='beginMonth' value="${userResumeInstance?.beginMonth}" >
               </g:select>
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'endYear', 'error')} ">
	<label for="endYear">
		<g:message code="userResume.endYear.label" default="End Year" />
		
	</label>
   <g:select  from="${yearList}"
                         name='endYear' value="${userResumeInstance?.endYear}" >
               </g:select>
	
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'endMonth', 'error')} ">
	<label for="endMonth">
		<g:message code="userResume.endMonth.label" default="End Month" />
		
	</label>
	  <g:select  from="${monthList}"
                         name='endMonth' value="${userResumeInstance?.endMonth}" >
               </g:select>
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'companyName', 'error')} ">
	<label for="companyName">
		<g:message code="userResume.companyName.label" default="Company Name" />
		
	</label>
	<g:textField name="companyName" value="${userResumeInstance?.companyName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'jobTitle', 'error')} ">
	<label for="jobTitle">
		<g:message code="userResume.jobTitle.label" default="Job Title" />
		
	</label>
	<g:textField name="jobTitle" value="${userResumeInstance?.jobTitle}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userResumeInstance, field: 'jobDscp', 'error')} ">
	<label for="jobDscp">
		<g:message code="userResume.jobDscp.label" default="Job Dscp" />
		
	</label>
	<g:textField name="jobDscp" value="${userResumeInstance?.jobDscp}"/>
</div>
                                  <g:hiddenField name="userBaseinfo.id" value="${userResumeInstance?.userBaseinfo?.id}" />
				</fieldset>
				<fieldset class="buttons">
					<g:submitButton name="create" class="gh_button" value="${message(code: 'default.button.create.label', default: 'Create')}" />
				</fieldset>
			</g:form>
			<!-- end -->
            </div>
          </div>
        </div>
      </div>
    </div>
	</body>
</html>
